import { Directive, ElementRef, Input } from '@angular/core';

@Directive({
  selector: '[appSelectable]',
  standalone: true
})
export class SelectableDirective {
  
  constructor(public elementRef: ElementRef) {}
  public data: any;

  @Input() 
  set appSelectable(value: any) {
    this.data = value;
    // 可以在此处添加数据验证逻辑
  }
}
